package cn.com.xf.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.xf.dao.TbdamagedgoodsDAO;
import cn.com.xf.domain.Tbdamagedgoods;
import cn.com.xf.domain.Tbdamagedimage;
import cn.com.xf.domain.Tbdamagedunknown;
import cn.com.xf.service.DamagedgoodsService;
@Service
public class DamagedgoodsServiceImpl implements DamagedgoodsService {
	
	@Autowired
	private TbdamagedgoodsDAO damagedDAO;

	@Override
	public List<Tbdamagedgoods> selectDamaged(int begin, int pageSize, String orderid, String entersite,String entertimeStart,String entertimeEnd) {
		// TODO selectDamaged
		return damagedDAO.selectDamaged(begin, pageSize, orderid, entersite,entertimeStart,entertimeEnd);
	}

	@Override
	public Integer selectDamagedCount(String orderid, String entersite,String entertimeStart,String entertimeEnd) {
		// TODO selectDamagedCount
		return damagedDAO.selectDamagedCount(orderid, entersite,entertimeStart,entertimeEnd);
	}

	@Override
	public List<Tbdamagedgoods> selectUnknown(int begin, int pageSize, String entersite, String recedateStart,
			String recedateEnd,String receclass,String memo,String goodsid,String applysite) {
		// TODO selectUnknown
		return damagedDAO.selectUnknown(begin, pageSize, entersite, recedateStart, recedateEnd, 
				receclass, memo, goodsid,applysite);
	}

	@Override
	public Integer selectUnknownCount(String entersite, String recedateStart, String recedateEnd,
			String receclass,String memo,String goodsid,String applysite) {
		// TODO selectUnknownCount
		return damagedDAO.selectUnknownCount(entersite, recedateStart, recedateEnd, receclass, 
				memo,goodsid,applysite);
	}

	@Override
	public List<Tbdamagedimage> selectImage(String seqid) {
		// TODO selectImage
		return damagedDAO.selectImage(seqid);
	}

	@Override
	public Tbdamagedgoods selectGoodsByseqid(String seqid) {
		// TODO Auto-generated method stub
		return damagedDAO.selectGoodsByseqid(seqid);
	}

	@Override
	public int updateGoodsApplySta(int applysta, String seqid) {
		// TODO Auto-generated method stub
		return damagedDAO.updateGoodsApplySta(applysta, seqid);
	}

	@Override
	public List<Tbdamagedunknown> selectApply(String seqid) {
		return damagedDAO.selectApply(seqid);
	}

	@Override
	public Tbdamagedunknown selectApply(int id) {
		// TODO Auto-generated method stub
		return damagedDAO.selectApply(id);
	}

	@Override
	public int selectRepetCount(String seqid, String applysite) {
		// TODO Auto-generated method stub
		return damagedDAO.selectRepetCount(seqid, applysite);
	}

	@Override
	public void insertApply(Tbdamagedunknown tbdu) {
		// TODO Auto-generated method stub
		damagedDAO.insertApply(tbdu);
	}

	@Override
	public int updateApplyStatus(int status, int id) {
		// TODO Auto-generated method stub
		return damagedDAO.updateApplyStatus(status, id);
	}

	@Override
	public int delApplyByid(int id) {
		// TODO Auto-generated method stub
		return damagedDAO.delApplyByid(id);
	}

	@Override
	public int updateVerify(Tbdamagedunknown tbdu) {
		// TODO Auto-generated method stub
		return damagedDAO.updateVerify(tbdu);
	}

}
